<div class="col-sm-12">
  <!-- BOX -->
  <div class="box">
    <div class="box-body">
      <div id="datatable1_wrapper" class="dataTables_wrapper form-inline" role="grid">
      	<div class="row">
          <div class="col-sm-9">
        	  <!--搜索-->
            <div class="col-sm-5 nopadding-left">
        	    <div class="input-group">
            		{{input class="form-control" type="text" placeholder="搜索模板名称" value=queryCondition enter="search"}}
      	        <span class="input-group-btn">
        		      <button class="btn btn-primary btn-reduce" type="button" style="touch-action: manipulation; -ms-touch-action: manipulation;" {{action "search" on="click"}}>
                    <i class="fa fa-search"></i>
                  </button>
      	        </span>
        	    </div>
        	  </div>
        	  <!--搜索-->
        </div>
        <div class="user-add-btn col-sm-3 nopadding-right pull-right">
          {{#ui/mix-button class="user-btn pull-right " iconClass="fa-plus"  text='添加新模板'  clickAction="addEva" addEva="addEva"}}
          {{/ui/mix-button}}
        </div>
      	</div>
        <table id="datatable1" cellpadding="0" cellspacing="0" border="0"  class="datatable table table-bordered table-hover dataTable" aria-describedby="datatable1_info">
          <thead>
            <tr role="row">
              <th rowspan="1" colspan="1" width="">模板名称</th>
              <th rowspan="1" colspan="1" width="">创建时间</th>
              <th rowspan="1" colspan="1" width="">创建人</th>
            </tr>
          </thead>
          <tbody role="alert" aria-live="polite" aria-relevant="all" class="">
            {{#each evaList  as |eva|}}
            <tr class="pointer" {{action "goDetail" eva on="click"}}>
              <td class="ellipsis">{{eva.title}}</td>
              <td>{{eva.createTime}}</td>
              <td>{{eva.createUser.name}}</td>
            </tr>
            {{/each}}
          </tbody>
        </table>
        {{#if evaList}}
            {{page-numbers content=evaList showFL=true numPagesToShow=5}}
        {{else}}
                <h1 class="col-sm-12 center unTask"></h1>
        {{/if}}
      </div>
    </div>
  </div>
  <!-- /BOX -->
</div>


{{#if addNewEva}}
	{{#bs-modal body=false footer=false header=false closedAction=(action "invitation")
	submitAction=(action "saveNewEva")}}
		{{#bs-modal-header}}
			<h3 class="modal-title">新增模板</h3>
		{{/bs-modal-header}}
		{{#bs-modal-body}}
			<div class="col-xs-12 nopadding-horizontal">
				<div class="col-xs-12 nopadding-left">
					<div class="form-input-group">
						<span class="input-group-addon">模板标题：</span>
						{{input class="input-group-content" type='text' value=title}}
					</div>
				</div>
      </div>

		{{/bs-modal-body}}
		{{#bs-modal-footer class="user-add-btn"}}
      {{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-save"  text='确定' clickAction="saveNewEva" saveNewEva="saveNewEva"}}
      {{/ui/mix-button}}
      {{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo"  text='取消'  clickAction="invitation" invitation="invitation"}}
      {{/ui/mix-button}}
		{{/bs-modal-footer}}
	{{/bs-modal}}
{{/if}}
